package cn.apotato.inclusion.commin.response;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/8/6 12:03
 */
public enum ResponseCode {
    /**
     * 接口返回枚举
     */
    SUCCESS(200, "接口调用成功"),
    FAIL(500, "接口调用失败"),
    PARAM_ERROR(401, "参数异常"),
    NOT_LOGIN_ERROR(402, "未登录"),
    AUTHOR_ERROR(403, "权限不足"),
    BLACK_ERROR(405, "权限不足")
    ;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code;
    public String message;
}
